/*
 * Copyright (c) 2020, 2025, keyila All rights reserved.
 *
 */
package com.clp.study.Test.TwentyOneTOThreeQ;

/**
 * @author clp
 * @version 1.0
 */
public class TwoA {
    public static void main(String[] args) {
        int result = calculate(5, 0);
        System.out.println(result);
    }

    public static int calculate(int a,int b){
        try {
            return a/b;
        }catch (ArithmeticException e){
            return 0;
        }finally {
            return -1;
        }
    }
}
